package com.esri.core.tasks.identify;

import com.esri.core.geometry.Envelope;
import com.esri.core.geometry.Geometry;
import com.esri.core.geometry.SpatialReference;
import com.esri.core.internal.tasks.c.b;
import java.util.HashMap;
import java.util.Map;

/* loaded from: classes.dex */
public class IdentifyParameters {
    public static final int ALL_LAYERS = 0;
    public static final int TOP_MOST_LAYER = 2;
    public static final int VISIBLE_LAYERS = 1;
    b _params;

    public IdentifyParameters() {
        this._params = new b();
    }

    public IdentifyParameters(Geometry geometry, Envelope envelope, SpatialReference spatialReference, int[] iArr, int i, int i2, int i3, boolean z) {
        this();
        this._params.a(geometry);
        this._params.a(envelope);
        this._params.a(iArr);
        this._params.c(i);
        this._params.d(i2);
        this._params.e(i3);
        this._params.a(spatialReference);
        this._params.a(z);
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    public b getParams() {
        return this._params;
    }

    public boolean getReturnGeometry() {
        return this._params.i();
    }

    public void setReturnGeometry(boolean z) {
        this._params.a(z);
    }

    public double getMaxAllowableOffset() {
        return this._params.l();
    }

    public void setMaxAllowableOffset(double d) {
        this._params.a(d);
    }

    public Map<String, String> getLayerDefs() {
        return this._params.j();
    }

    public void setLayerDefs(Map<String, String> map) {
        this._params.a((HashMap) map);
    }

    public void setGeometry(Geometry geometry) {
        this._params.a(geometry);
    }

    public Geometry getGeometry() {
        return this._params.a();
    }

    public void setMapExtent(Envelope envelope) {
        this._params.a(envelope);
    }

    public Envelope getMapExtent() {
        return this._params.b();
    }

    public void setSpatialReference(SpatialReference spatialReference) {
        this._params.a(spatialReference);
    }

    public SpatialReference getSpatialReference() {
        return this._params.k();
    }

    public void setLayerMode(int i) {
        this._params.a(i);
    }

    public int getLayerMode() {
        return this._params.g();
    }

    public void setLayers(int[] iArr) {
        this._params.a(iArr);
    }

    public int[] getLayers() {
        return this._params.c();
    }

    public void setMapWidth(int i) {
        this._params.c(i);
    }

    public int getMapWidth() {
        return this._params.d();
    }

    public void setMapHeight(int i) {
        this._params.d(i);
    }

    public int getMapHeight() {
        return this._params.e();
    }

    public void setDPI(int i) {
        this._params.e(i);
    }

    public int getDPI() {
        return this._params.f();
    }

    public void setTolerance(int i) {
        this._params.b(i);
    }

    public int getTolerance() {
        return this._params.h();
    }

    public int hashCode() {
        b bVar = this._params;
        return 31 + (bVar == null ? 0 : bVar.hashCode());
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && getClass() == obj.getClass()) {
            IdentifyParameters identifyParameters = (IdentifyParameters) obj;
            b bVar = this._params;
            if (bVar == null) {
                if (identifyParameters._params != null) {
                    return false;
                }
            } else if (!bVar.equals(identifyParameters._params)) {
                return false;
            }
            return true;
        }
        return false;
    }
}
